package com.mdd.front.validate;

import com.mdd.common.validator.annotation.IntegerContains;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * 首页浏览记录参数
 * @author panweiliang
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class IndexVisitParam extends BaseParam {

    @NotNull(message = "terminal参数缺失", groups = {create.class, update.class})
    @IntegerContains(values = {1, 2, 3, 4, 5, 6}, message = "terminal参数值不在符合范围", groups = {create.class, update.class})
//    1-微信小程序；2-微信公众号；3-手机H5；4-电脑PC；5-苹果APP；6-安卓APP
    private Integer terminal;

}
